package com.ruoyi.bantong.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包玩法配置对象 bt_redbag_config
 * 
 * @author laohei
 * @date 2021-02-06
 */
public class BtRedbagConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型 1日 2周 */
    @Excel(name = "类型 1日 2周")
    private Integer type;

    /** 开奖小时数 */
    @Excel(name = "开奖小时数")
    private Integer openHour;

    /** 业绩百分比 */
    @Excel(name = "业绩百分比")
    private Integer percentage;

    /** 中奖红包金额 */
    @Excel(name = "中奖红包金额")
    private Integer redbagFee;

    /** 开奖公布间隔（分钟） */
    @Excel(name = "开奖公布间隔", readConverterExp = "分=钟")
    private Integer openInterval;

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setOpenHour(Integer openHour) 
    {
        this.openHour = openHour;
    }

    public Integer getOpenHour() 
    {
        return openHour;
    }
    public void setPercentage(Integer percentage) 
    {
        this.percentage = percentage;
    }

    public Integer getPercentage() 
    {
        return percentage;
    }
    public void setRedbagFee(Integer redbagFee)
    {
        this.redbagFee = redbagFee;
    }

    public Integer getRedbagFee()
    {
        return redbagFee;
    }
    public void setOpenInterval(Integer openInterval) 
    {
        this.openInterval = openInterval;
    }

    public Integer getOpenInterval() 
    {
        return openInterval;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("type", getType())
            .append("openHour", getOpenHour())
            .append("percentage", getPercentage())
            .append("redbagFee", getRedbagFee())
            .append("openInterval", getOpenInterval())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
